<?php

require_once('../include/GeneralTop.php');
require('../include/class/db.php');

if (!$content_admin) {
	die('<div style="text-align:center">Permission denied...</div>');
}

$id = "-1";
if (isset($_GET['Id'])) {
    $id = $_GET['Id'];
}

$db = new db;
$sql = sprintf("SELECT * FROM petmanual WHERE Id = %s", GetSQLValueString($id, "int"));
$res = $db->query($sql);
$row = $db->fetch($res);

include('AdminPanel.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<table width="50%"  border="0" align="center" cellpadding="5" cellspacing="0" class="table_border_grey" style="margin-top:10px;">
    <tr valign="baseline">
      <td nowrap="nowrap" align="right" width="20%">Id:</td>
      <td width="80%"><?php echo $row['Id']; ?></td>
    </tr>
    <tr valign="baseline">
      <td nowrap="nowrap" align="right">标题:</td>
      <td><?php echo $row['mal_title']; ?></td>
    </tr>
    <tr valign="baseline">
      <td height="67" align="right" nowrap="nowrap">内容:</td>
      <td><?php echo nl2br($row['mal_info']); ?></td>
    </tr>
    <tr valign="baseline">
      <td nowrap="nowrap" align="right">分类:</td>
      <td><?php echo getManualType($row['mal_class']); ?></td>
    </tr>
    <tr>
  	  <td>&nbsp;</td>
      <td><input type="button" id="button" onclick="javascript:history.go(-1);" value="<?php echo TEXT_BACK?>"></td>
    </tr>
<p>&nbsp;</p>
</body>
</html>